package cn.gailvlun.gll.net.emotion;



public class RefreshReq {
    private Integer id= 0;
    private EmotionEnum emotion = EmotionEnum.S;
    private String direction = "next";
    private boolean isLoadMore = false;
    private FilterEnum filterEnum;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public EmotionEnum getEmotion() {
        return emotion;
    }

    public void setEmotion(EmotionEnum emotion) {
        this.emotion = emotion;
        setLoadMore(false);
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public boolean isLoadMore() {
        return isLoadMore;
    }

    public void setLoadMore(boolean loadMore) {
        isLoadMore = loadMore;
        if (!loadMore) id = 0;
    }

    public FilterEnum getFilterEnum() {
        return filterEnum;
    }

    public void setFilterEnum(FilterEnum filterEnum) {
        this.filterEnum = filterEnum;
    }

    @Override
    public String toString() {
        return "RefreshReq{" +
                "id=" + id +
                ", emotion=" + emotion +
                ", direction='" + direction + '\'' +
                ", isLoadMore=" + isLoadMore +
                '}';
    }
}
